package com.elock.entity;

import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.elock.base.core.entity.BaseEntity;

/**
 * Entity - 终端信息下发
 * 1.业务系统下发新增一条记录，超时10秒未更新sendResult=1或者2字段，表示未同步到终端服务发送，要提示  “发送失败，终端不在线/发送异常”。
 * 2.如更新到sendResult=1字段，表示下发成功，那么展示发送内容.
 * 3.查询到下发成功后，超时15秒未更新到replyResult=1，表示未收到回复，要提示是否重发。
 * @author 仁德
 */
@Entity
@Table(name = "terminal_message_send")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "terminal_message_send_sequence")
public class TerminalMessageSend extends BaseEntity {

	private static final long serialVersionUID = 1386745660360951034L;

//	/** 终端设备id */
//	private Long terminalId;

	/** 终端设备编号 */
	private String terminalNum;

	/** 发送信息  有终端服务写入*/
	private String sendMessage;

	/** 发送类型 */
	private int sendType;

	/** 发送结果标识  0：未发送  1：已发送  2：发送异常 */
	private int sendResult;

	/** 回复信息 有终端服务写入*/
	private String replyMessage;

	/** 回复结果标识  0：未回复  1：已回复 */
	private int replyResult;

	/** 发送时间 */
	private String sendTime;

	/** 回复时间 */
	private String replyTime;

	/** 发送操作人 */
	private String processor;

	/** 当次发送事件唯一标识，日志也记录，可关联事件表查询  */
	private String uuid;

	/** 当次发送事件结果回复唯一标识，日志也记录，可关联事件表查询  */
	private String uuidResult;

	/** 备注 */
	private String remark;

	public String getTerminalNum() {
		return terminalNum;
	}

	public void setTerminalNum(String terminalNum) {
		this.terminalNum = terminalNum;
	}

	public String getSendMessage() {
		return sendMessage;
	}

	public void setSendMessage(String sendMessage) {
		this.sendMessage = sendMessage;
	}

	public int getSendType() {
		return sendType;
	}

	public void setSendType(int sendType) {
		this.sendType = sendType;
	}

	public int getSendResult() {
		return sendResult;
	}

	public void setSendResult(int sendResult) {
		this.sendResult = sendResult;
	}

	public String getReplyMessage() {
		return replyMessage;
	}

	public void setReplyMessage(String replyMessage) {
		this.replyMessage = replyMessage;
	}

	public int getReplyResult() {
		return replyResult;
	}

	public void setReplyResult(int replyResult) {
		this.replyResult = replyResult;
	}

	public String getSendTime() {
		return sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	public String getReplyTime() {
		return replyTime;
	}

	public void setReplyTime(String replyTime) {
		this.replyTime = replyTime;
	}

	public String getProcessor() {
		return processor;
	}

	public void setProcessor(String processor) {
		this.processor = processor;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getUuidResult() {
		return uuidResult;
	}

	public void setUuidResult(String uuidResult) {
		this.uuidResult = uuidResult;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
